package top.yjp.jtf.plugin;

import com.intellij.AbstractBundle;

public class MessageBundle  extends AbstractBundle {
    private static final AbstractBundle INSTANCE = new MessageBundle();

    public MessageBundle() {
        super("messages.language");
    }

    public static String message(String key) {
        return INSTANCE.getMessage(key);
    }

    // 在插件启动时调用测试
    public static void test() {
        System.out.println(message("action.text")); // 查看输出结果
    }
}